home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / X11R4 / cmds / X / ddx / Xsun / hdr / sun4.eeprom.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-02-20  |  1.2 KB  |  36 lines

  1. /*      @(#)eeprom.h 1.2 88/02/08 SMI      */
  2.  
  3. /*
  4.  * Copyright (c) 1985 by Sun Microsystems, Inc.
  5.  */
  6.  
  7. /*
  8.  * The EEPROM consists of one 2816 type EEPROM providing 2K bytes
  9.  * of electically erasable storage.  To modify the EEPROM, each
  10.  * byte must be written separately.  After writing each byte
  11.  * a 10 millisecond pause must be observed before the EEPROM can
  12.  * read or written again.  The majority of the EEPROM is diagnostic
  13.  * and is defined in ../mon/eeprom.h.  The software specific
  14.  * information (struct ee_soft) is defined here.  This structure
  15.  * is 0x100 bytes big.
  16.  */
  17. #ifndef LOCORE
  18. struct ee_soft {
  19.     u_short    ees_wrcnt[3];        /* write count (3 copies) */
  20.     u_short    ees_nu1;        /* not used */
  21.     u_char    ees_chksum[3];        /* software area checksum (3 copies) */
  22.     u_char    ees_nu2;        /* not used */
  23.     u_char    ees_resv[0x100-0xc];    /* XXX - figure this out sometime */
  24. };
  25.  
  26. #define EE_SOFT_DEFINED        /* tells ../mon/eeprom.h to use this ee_soft */
  27.  
  28. #include <mon/eeprom.h>
  29. #endif !LOCORE
  30.  
  31. #define    OBIO_EEPROM_ADDR 0xF2000000    /* address of eeprom in obio space */
  32.  
  33. #define    EEPROM_ADDR    0xFFFF2000    /* virtual address we map eeprom to */
  34. #define    EEPROM_SIZE    0x800        /* size of eeprom in bytes */
  35. #define    EEPROM        ((struct eeprom *)EEPROM_ADDR)
  36.